package com.xiaoxx.mapper;

import com.xiaoxx.model.entity.code.Fileds;
import com.xiaoxx.model.entity.code.Tables;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author HX
 * @since 2023-07-19
 */
@Mapper
public interface CodeGenerationMapper {

    /**
     * 获取数据库表
     * @param name
     * @return
     */
    List<Tables> getTables(String name);

    /**
     * 获取数据库表字段
     * @param name
     * @return
     */
    List<Fileds> getTableFileds(@Param("name") String name);
}
